export const routes = [
  {
    path: '/login',
    name: 'login',
    meta: { title: '登录' },
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/index',
    name: 'index',
    meta: { title: 'Bing酒店信息综合平台' },
    component: () => import('@/views/layout/index.vue'),
    children: [
      {
        path: '',
        name: 'home',
        meta: { title: '首页' },
        component: () => import('@/views/home/index.vue'),
      },
      // {
      //   path: 'mail',
      //   meta: { title: '邮件' },
      //   component: () => import('')
      // },
      // {
      //   path: 'message',
      //   meta: { title: '消息' },
      //   component: () => import('')
      // },
      // {
      //   path: 'mine',
      //   meta: { title: '个人中心' },
      //   component: () => import('')
      // },
      {
        path: 'setpwd',
        meta: { title: '修改密码' },
        component: () => import('@/views/pwd/setpwd.vue')
      },

      // 账户管理
      {
        path: 'role',
        meta: { title: '角色管理' },
        component: () => import('@/views/user/role.vue')
      },
      {
        path: 'user',
        meta: { title: '用户管理' },
        component: () => import('@/views/user/user.vue')
      },
      // 客房管理
      {
        path: 'roomtype',
        meta: { title: '房型管理' },
        component: () => import('@/views/room/roomtype.vue')
      },
      {
        path: 'room',
        meta: { title: '房间管理' },
        component: () => import('@/views/room/room.vue')
      },
      // 客户管理
      {
        path: 'livein',
        meta: { title: '入住管理' },
        component: () => import('@/views/custom/livein.vue')
      },
      {
        path: 'order',
        meta: { title: '订单管理' },
        component: () => import('@/views/custom/order.vue')
      },
      // 系统管理
      {
        path: 'menu',
        meta: { title: '菜单管理' },
        component: () => import('@/views/system/menu.vue')
      },
      {
        path: 'dictionary',
        meta: { title: '字典管理' },
        component: () => import('@/views/system/dictionary.vue')
      }
    ]
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    meta: { title: '404页面' },
    component: () => import('@/views/NotFound.vue')
  }
]
